﻿using ReferToFriend.Dapper;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace ReferToFriend.Reponsitory
{
    public class DataReponsitory
    {
        private SqlRepository _sqlReponsitory = new SqlRepository();
        private InMemoryRepository _inmemoryReponsitory = new InMemoryRepository();
        public static DataReponsitory Instant()
        {
            return new DataReponsitory();
        }

        public bool AddRecord(ReferFriend record)
        {
            _inmemoryReponsitory.AddRecord(record);
            _sqlReponsitory.AddRecord(record);
            return true;
        }
    }
}